class AddTestDataForPatients < ActiveRecord::Migration
  def self.up
    hospice = Hospice.find(:first)
    race = Race.find(:first)
    diagnosis = Diagnosis.find(:first)
    
    Patient.create(:first_name=>"Hamish",:last_name=>"McDermid",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Coreen",:last_name=>"van Wyk",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Renier",:last_name=>"Stander",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Jon-Barry",:last_name=>"Nash",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Amanda",:last_name=>"Nolokwe",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Tony",:last_name=>"Wilkinson",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Lance",:last_name=>"Oakes",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Heindrich",:last_name=>"Hanke",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Gavin",:last_name=>"Bennett",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Peter",:last_name=>"Woods",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Joan",:last_name=>"Joubert",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Tracy",:last_name=>"Brown",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Gawie",:last_name=>"Malan",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Christo",:last_name=>"Flemmer",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Chantelle",:last_name=>"Swanepoel",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Maryn",:last_name=>"Botha",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
    Patient.create(:first_name=>"Werner",:last_name=>"Grobler",:birth_date=>"1978-11-11",:hospice_id=>hospice.id,:race=>race,:diagnosis=>diagnosis)
  end

  def self.down
    Patient.delete_all
  end
end
